<?php 
$id= $_GET["id"];
$sql = "select * from mon_hoc where ID=".$id;
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<form name="form1" method="post" action="?mod=qlmh&act=updateOk" enctype="multipart/form-data">
<input name="id" type="hidden" value="<?php echo $row["ID"] ?>">

  <p>M&atilde; M&ocirc;n H&#7885;c:
    <input type="text" name="maMH" value="<?php echo $row["maMH"]?>">
  </p>
  <p>T&ecirc;n M&ocirc;n H&#7885;c: 
    <input type="text" name="tenMH" value="<?php echo $row["tenMH"]?>">
  </p>
  <p>L&yacute; Thuy&#7871;t: 
    <input type="text" name="lyThuyet" value="<?php echo $row["lyThuyet"]?>">
  </p>
  <p>Th&#7921;c H&agrave;nh: 
    <input type="text" name="thucHanh" value="<?php echo $row["thucHanh"]?>">
  </p>
  <p>S&#7889; T&iacute;n Ch&#7881;: 
    <input type="text" name="soTC" value="<?php echo $row["soTC"]?>">
  </p>
  <p>
    <input type="submit" name="Submit" value="L&#432;u">
  </p>
</form>
